import WebGl from '@/modules/three';
import { BlurRadiusMaterial, BlurRadiusType } from './threeMaterials';
const { Three } = WebGl;

interface BlurCircleType extends BlurRadiusType {
  geoSize?: number;
}

/**
 * 一个径向模糊的圆
 * **/
export class BlurCircle extends Three.Mesh {
  constructor(config: BlurCircleType) {
    const material = new BlurRadiusMaterial(config);
    super(new Three.CircleBufferGeometry(config.geoSize || 40, 8), material);
  }
}
